package com.lyf.controller;

import com.lyf.service.PayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.web.bind.annotation.RestController;

/**
 * @AUTHOR LYF
 * @DATE 2022/5/24
 * @VERSION 1.0
 * @DESC
 */
@RestController
public class RunnerController implements ApplicationRunner {
    @Autowired
    PayService payService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        payService.pay();
    }
}
